package gone;

import java.awt.*;
import java.awt.event.*;
import javax.swing.JOptionPane;

public class GetGraphics extends Frame
{
public static void main(String[] args)
{
Frame f = new Frame("Banners Results");
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
}
);

f.setSize(500,700);
//f.setLocation(10,10);
f.setVisible(true);

String Test;
int number;


Test = JOptionPane.showInputDialog("Enter no: ");
number = Integer.parseInt(Test);

f.add(new Label(number + " "));

double number1 = number * 500;

f.add(new Label((int)number1+ " "));

double number2 = number1 * 0.3;

f.add(new Label((int)number2+ " ")); //THIS LINE COMES UP ON THE FRAME ..... THe lines above this don't display

}

}